import React, { Component } from 'react'
import '../assets/css/mydate.scss'

export default class MyDate extends Component {
  constructor(props){
    super(props)
    console.log('props',props);
  }
  render() {
    return (
      <div className='date-box'>
         <div className='month'>{this.props.date.toLocaleString("zh-CN",{month:'long'})}</div>
         <div className='day'>{this.props.date.getDate()}</div>
      </div>
    )
  }
}
